package com.hm.hall.commons.constans.po;

import java.util.Date;

/**
 * 聊天记录
 */
public class ChatRecordPO {
    public Long roomId;// 房间ID
    public Long userId;// 用户ID
    public String avatar;// 用户头像
    public String nickname;// 用户昵称
    public Short type;//": "text",//消息类型 text emoji
    public String content;//":"你好！",//文本内容
    public Date createTime;//":时间
    public Integer second;//时长


    public ChatRecordPO() {
    }

    public ChatRecordPO(Long roomId, Long userId, String avatar, String nickname, Short type, String content, Date createTime, Integer second) {
        this.roomId = roomId;
        this.userId = userId;
        this.avatar = avatar;
        this.nickname = nickname;
        this.type = type;
        this.content = content;
        this.createTime = createTime;
        this.second = second;
    }


    public Integer getSecond() {
        return second;
    }

    public void setSecond(Integer second) {
        this.second = second;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


}
